<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
		<title>whois class example</title>
	</head>
	<body>
		<form action="" method="get">
			<input type="text" name="url" value="" />
			<input type="submit" /><br />
		</form>
		<?php
			include 'gcWhois.class.php';
			if (isset($_GET['url']))
			{
				$whois = whois::execute($_GET['url']);
				if (!$whois)
				{
					echo '<p>There has been an error. Please go back and look over the information entered.</p>';
				}
				else
				{
					echo '<pre>' . $whois . '</pre>';
				}
			}
			else
			{
				echo '<p>Enter a domain to perform a WHOIS search on.</p>';
			}
		?>
	<p>code by the <a href="http://global-config.com/">global config</a> development team</p>
	</body>
</html>